
def work1():
    a =[3,237,327,3,1,4,1,4]
    for i in range(len(a)):
       for j in range(i+1,len(a)):
           if a[i]==a[j]:
               a[i] ='s'
               a[j] ='s'
    for i in range(8):
       if isinstance(a[i],int):
           print(f'要找的数是{a[i]}')
def work2():
    #将237，和327分到两堆，对每一堆分别异或
    a = [3, 237, 327, 3, 1, 4, 1, 4]
    result=0
    for i in a:
        result ^=i
    split_flag =result & -result
    result1,result2 =0,0
    for i in a:
        if split_flag&i ==0:
            result1 ^=i
        else:
            result2 ^=i
    print(result1,result2)

if __name__ == '__main__':
    work1()